package ljye.com.ljye.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import ljye.com.ljye.R;
import ljye.com.ljye.view.MyCircleImageView;

//确认订单
public class Activity_Confirm_Order extends Activity {
    public View.OnClickListener listener = new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            switch (view.getId()) {
                case R.id.back://返回
                    finish();
                    break;
                case R.id.submit://提交
                    //去支付
                    intent = new Intent(Activity_Confirm_Order.this,Activity_Payment_Order.class);
                    startActivity(intent);
                    break;

                default:
                    break;
            }
        }
    };
    private ImageView back;
    private TextView babyInfo;
    private MyCircleImageView classImg;
    private TextView className;
    private TextView classHour;
    private TextView classTime;
    private TextView allmoney;
    private TextView schoolName;
    private TextView schoolAddress;
    private TextView coupon;
    private TextView money;
    private TextView lastMoney;
    private TextView lastmoney;
    private Button submit;
    private ImageView babySex;
    private Intent intent;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_confirm_order);
        initView();
        back.setOnClickListener(listener);
        submit.setOnClickListener(listener);


    }


    private void initView() {
        back = (ImageView) findViewById(R.id.back);
        babySex = (ImageView) findViewById(R.id.baby_sex);//宝贝性别
        babyInfo = (TextView) findViewById(R.id.baby_info);//宝贝信息
        classImg = (MyCircleImageView) findViewById(R.id.class_img);//课程图片
        className = (TextView) findViewById(R.id.class_name);//课程名称
        classHour = (TextView) findViewById(R.id.class_hour);//课时
        classTime = (TextView) findViewById(R.id.class_time);//上课时间
        schoolName = (TextView) findViewById(R.id.school_name);//校区
        schoolAddress = (TextView) findViewById(R.id.school_address);//学校地址
        coupon = (TextView) findViewById(R.id.coupon);//优惠券
        money = (TextView) findViewById(R.id.money);//课程价格
        allmoney = (TextView) findViewById(R.id.allmoney);//总价
        lastMoney = (TextView) findViewById(R.id.last_money);//实付价
        lastmoney = (TextView) findViewById(R.id.lastmoney);//实付价
        submit = (Button) findViewById(R.id.submit);

    }
}

